package com.yc.behavioral.template;

public class ConcreteTemplateTwo extends AbstractTemplate{
	@Override
	protected void step1() {
		System.out.println("模板方法2第一步");
	}

	@Override
	protected void step2() {
		System.out.println("模板方法2第二步");
	}

	@Override
	protected void step3() {
		System.out.println("模板方法2第三步");
	}

	public static void main(String[] args) {
		AbstractTemplate tmp1 = new ConcreteTemplateOne();
		tmp1.executeStep();

		AbstractTemplate tmp2 = new ConcreteTemplateTwo();
		tmp2.executeStep();
	}
}
